<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="p" uri="/WEB-INF/tld/pagination.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>核算项目--客户</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>

	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				核算项目--客户
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="selectCustomer.action" theme="simple"
				id="delrow" cssStyle="margin-top:0px;">
				<div id="info_main">
					<!-- 信息显示?-->
					<!-- 查询?-->

					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									客户代码&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectCustomer.customerCode"
										size="12" maxlength="10"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									客户名称&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectCustomer.customerName"
										size="12" maxlength="20"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									客户区域&nbsp;
								</td>
								<td>
									<s:hidden
										name="verifyprojectCustomer.PBaseAssistantmaterialAreaId"
										id="areaId"></s:hidden>
									<s:textfield name="areaName" size="12" id="areaName"
										readonly="true" maxlength="15"></s:textfield>
										<img src="images/kookup.gif" style="cursor: pointer"
									onclick="openWin('selectArea.action','area',350,500,0)">
								</td>
								<td>
									客户地址&nbsp;
								</td>
								<td>
									<s:textfield name="verifyprojectCustomer.address" size="12"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>

					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />

						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
					<!-- 信息显示?-->
					<div id="info_info1">
						<table id="info_table" width="2540px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th width="80px">
										代码
									</th>
									<th width="100px">
										名称
									</th>
									<th width="80px">
										简称
									</th>
									<th width="100px">
										地址
									</th>
									<th width="80px">
										区域
									</th>
									<th width="80px">
										行业
									</th>
									<th width="120px">
										联系人
									</th>
									<th width="120px">
										电话
									</th>
									<th width="90px">
										传真
									</th>
									<th width="80px">
										信用额度
									</th>
									<th width="80px">
										结算期限
									</th>
									<th width="80px">
										邮编
									</th>
									<th width="120px">
										邮件地址
									</th>
									<th width="80px">
										开户银行
									</th>
									<th width="90px">
										银行账号
									</th>
									<th width="95px">
										税务登记
									</th>
									<th width="95px">
										增值税(%)
									</th>
									<th width="80px">
										城市
									</th>
									<th width="80px">
										省份
									</th>
									<th width="80px">
										国家
									</th>
									<th width="100px">
										公司主页
									</th>
									<th width="80px">
										法人代表
									</th>
									<th width="80px">
										客户分类
									</th>
									<th width="80px">
										销售方式
									</th>
									<th width="80px">
										分管部门
									</th>
									<th width="110px">
										专营业务员
									</th>
								</tr>
							</thead>
							<tbody>
								<s:if test="!cdtos.isEmpty()">
									<s:iterator value="cdtos">
									<tr ondblclick="childToParent('customerId','<s:property value="customer.customerId"/>','customerName','<s:property value="customer.customerName"/>')">
											<td>
												<s:property value="customer.customerCode" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.customerName" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.customerBrief" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.address" />
												&nbsp;
											</td>
											<td>
												<s:property value="area.areaName" />
												&nbsp;
											</td>
											<td>
												<s:property value="industry.industryName" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.linkman" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.phone" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.fax" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.creditNum" />
												&nbsp;
											</td>
											<td>
												<s:property value="balancedeadline.balanceDeadLineName" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.post" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.mailAddress" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.openAccountBank" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.bankAccount" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.taxRegisterNo" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.increaseTaxPercent" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.city" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.province" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.country" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.webSite" />
												&nbsp;
											</td>
											<td>
												<s:property value="customer.responsibleMan" />
												&nbsp;
											</td>
											<td>
												<s:property value="customerCategory.customerCategoryName" />
												&nbsp;
											</td>
											<td>
												<s:if test="customer.salesMethod == 1">
													现销
														&nbsp;
												</s:if>
												<s:elseif test="customer.salesMethod == 2">
													赊销
														&nbsp;
												</s:elseif>
												<s:elseif test="customer.salesMethod == 3">
													分期收款销售
														&nbsp;
												</s:elseif>
												<s:elseif test="customer.salesMethod == 4">
													委托代销
														&nbsp;
												</s:elseif>
												<s:elseif test="customer.salesMethod == 0">
														&nbsp;
												</s:elseif>
											</td>
											<td>
												<s:property value="department.departmentName" />
												&nbsp;
											</td>
											<td>
												<s:property value="candiate.candiateName" />
												&nbsp;
											</td>
										</tr>
									</s:iterator>
								</s:if>
							</tbody>
							<tfoot>
								<tr>
								</tr>
							</tfoot>
						</table>
						<s:if test="!cdtos.isEmpty">
							<tr style="font-size: 12px;">
								<div align="center">
									<font color="#FF0000"> 共<s:property value="page.total" /> 页 第
										<s:property value="page.cpage" /> 页 <p:page cpage="%{page.cpage}"
											total="%{page.total}" url="%{page.url}" /> </font>
								</div>
							</tr>
						</s:if>
						<script language="javascript">  
						//("表格名称","奇数行背?,"偶数行背?,"点击后背?);
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背?,"偶数行背?);
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>
